﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace BrokerBase.Lib.InsurancePlan
{
    public class InsPlanDocTemplate
    {
        public static InsPlanDocTemplate Load(string file)
        {
            XElement root = XElement.Load(file);
            IEnumerable<XElement> elements = root.Elements("Template");

            XElement prefaceElement = root.Element("Preface");

            InsPlanDocTemplate tmp = new InsPlanDocTemplate();
            tmp.Preface = prefaceElement.Value;

            return tmp;
        }

        public string Preface { get; set; }
    }
}
